A function with no arguments must include the parentheses:

function myfunction()
{
some statements
}

#Title: JavaScript Functions : How to Define a Function
#Element: 233: JavaScript Functions : How to Define a Function
#Article: 170: JavaScript Functions